package com.onlinevideo.service.impl;

import com.onlinevideo.dao.LoginfoDao;
import com.onlinevideo.dao.impl.LoginfoDaoImpl;
import com.onlinevideo.entity.Loginfo;
import com.onlinevideo.service.LoginfoService;

import java.util.List;

public class LoginfoServiceImpl implements LoginfoService {

    private LoginfoDao loginfoDao = new LoginfoDaoImpl();

    @Override
    public int insert(Loginfo loginfo) {
        return loginfoDao.insert(loginfo);
    }

    @Override
    public int delete(Long id) {
        return loginfoDao.delete(id);
    }

    @Override
    public int update(Loginfo loginfo) {
        return loginfoDao.update(loginfo);
    }

    @Override
    public Loginfo queryById(Long id) {
        return loginfoDao.queryById(id);
    }

    @Override
    public List<Loginfo> queryAll() {
        return loginfoDao.queryAll();
    }
}
